package cheers.gui;

import javax.swing.JPanel;

/**
 *
 * @author santiago
 */
public abstract class AbstractDetailsComponent<T> 
        extends JPanel 
        implements IDetailsComponent<T> {
    
    protected T model = null;
    
    public T getModel() {
        return model;
    }
    
    public void setModel(T component) {
        model = component;
        updateDetails();
    }
    
    protected abstract void updateDetails();
}
